package com.axdac.mixbind.view;

import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

/**
 * Created by Administrator on 2018/2/24 0024.
 */

public class MixListViewBinder implements IBindView {
    @Override
    public void onBind(View view, Object object) {
        ListView listView = (ListView) view;
        if(object==null){
            return ;
        }
        ArrayAdapter<String> array=new ArrayAdapter<String>(view.getContext(),
                android.R.layout.simple_list_item_1, (String[]) object);
        listView.setAdapter(array);
    }
}
